import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:Writer类的使用
 * Author: WJW
 * Date: 2024-08-20
 * Time: 22:36
 */
public class IODemo5 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("./test.txt",true)){
            String s = "你好啊";
            writer.write(s);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
